<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>test</title>
<link rel="stylesheet" href="css/base.css" />
<script type="text/javascript" src="js/ajax.js" ></script>
</head>
<body>
<div class="wrap">
	<h2 class="wrap-h2">test 小白的成长之路！</h2>
	<div class="wrap-main">
		<input id="btn1" type="button" value="测试">
	</div>
</div>
<script type="text/javascript">
	window.onload = function (){
		for(var i=0; i<5 ; i++){
			setTimeout(function(){ alert("A:"+ i*1000) }, i*1000)
			console.log("B:"+i);
		}
		console.log("ccc");
		setTimeout(function(){ console.log("ddd"); },2000)
		
//		var oBtn = document.getElementById("btn1");
//		oBtn.onclick = function (){
//			setTimeout(function(){
//				alert("aa")
//			},1000)
//		}
	}
</script>
</body>
</html>
